<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 帥
  Date: 2020/12/30
  Time: 9:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<style type="text/css">
    table tr:nth-child(even) {background-color: #adff2f;}

</style>
<body>
<table border="1">
    <tr>
        <td colspan="10"><h1>显示${userSession.id}</h1></td>
        <td><a href="${pageContext.request.contextPath}/dev/add.do">添加人物</a></td>
    </tr>
    <tr>
        <td>ID</td>
        <td>编号</td>
        <td>姓名</td>
        <td>密码</td>
        <td>邮箱</td>
        <td>签名</td>
        <td>创建建者</td>
        <td>创建时间</td>
        <td>修改者</td>
        <td>修改时间</td>
        <td>操作</td>
    </tr>
    <c:forEach var="list" items="${pageUtil.lists}">
        <tr>
            <td>${list.id}</td>
            <td>${list.devCode}</td>
            <td>${list.devName}</td>
            <td>${list.devPassword}</td>
            <td>${list.devEmail}</td>
            <td>${list.devInfo}</td>
            <td>${list.createdBy}</td>
            <td>${list.creationDate}</td>
            <td>${list.modifyBy}</td>
            <td>${list.modifyDate}</td>
            <td><a href="${pageContext.request.contextPath}/dev/delete/${list.id}">删除</a>
                <a href="${pageContext.request.contextPath}/dev/selone/${list.id}">修改</a></td>
        </tr>
    </c:forEach>
</table>
当前页[${pageUtil.pageindex}/${pageUtil.pagecount}]
<c:if test="${pageUtil.pageindex>1}">
    <a href="${pageContext.request.contextPath}/dev/show_All?pageIndex=1">首页</a>
    <a href="${pageContext.request.contextPath}/dev/show_All?pageIndex=${pageUtil.pageindex-1}">上一页</a>
</c:if>
<c:if test="${pageUtil.pageindex<pageUtil.pagecount}">
    <a href="${pageContext.request.contextPath}/dev/show_All?pageIndex=${pageUtil.pageindex+1}">下一页</a>
    <a href="${pageContext.request.contextPath}/dev/show_All?pageIndex=${pageUtil.pagecount}">尾页</a>
</c:if>
</body>
</html>
